package com.guard.agent.bridge;

import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;

public class PluginClassLoader extends URLClassLoader {

    public PluginClassLoader(ClassLoader parent) {
        super(AgentContext.agentClassLoader.getURLs(), parent);
        try {
            addURL(new URL("file:/Users/shangwq/Documents/workspace/service-guard/guard-agent/plugin/springboot/target/springboot-plugin.jar"));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
